<div>
    <div>
        <div class="panel panel-default m-n">
            <div class="panel-heading font-bold">更改公告</div>
            <form class="ng-valid form-horizontal" name="form" ng-submit="submit(form)">
                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">标题</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" ng-model="bulletinBoard.title" ng-trim="true" required>
                        </div>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">内容</label>
                        <div class="col-sm-8">
                            <textarea class="form-control" rows="10" ng-model="bulletinBoard.content" ng-trim="true" required/>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">收信群体</label>
                        <div class="col-sm-8">
                            <select class="form-control" ng-model="bulletinBoard.level" ng-change="selectChange(this)" required>
                                <option value="-1">所有代理商</option>
                                <option value="0">省级代理商</option>
                                <option value="1">市级代理商</option>
                                <option value="2">区/县级代理商</option>
                                <option value="-2">指定代理商</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group" ng-if="bulletinBoard.level == -2">
                        <label class="col-sm-3 control-label">收信人</label>
                        <div class="col-sm-8">
                            <select ui-jq="chosen" class="form-control"
                                    data-placeholder="代理商姓名或手机号"
                                    ng-model="bulletinBoard.agentId"
                                    ng-options="a.id as (a.name +' - '+ a.mobilePhone) for a in agentList"
                             >
                                <option value=""></option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="panel-footer text-right">
                    <div>
                        <button type="submit" class="btn m-b-xs w-xs btn-info">更改</button>
                        <button class="btn m-b-xs w-xs btn-default" ng-click="cancel()">取消</button>
                    </div>
                </div>
                </form>
            </div>
        </div>
    </div>
</div>